package com.bjpowernode.mapper;

import com.bjpowernode.model.IncomeRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IncomeRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(IncomeRecord record);

    int insertSelective(IncomeRecord record);

    IncomeRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(IncomeRecord record);

    int updateByPrimaryKey(IncomeRecord record);

    //查询收益记录
    List<IncomeRecord> selectIncomeByUid(@Param("uid") Integer uid);

    //获取到期的产品（查询的收益表）
    List<IncomeRecord> selectExpire();
}